package no.ntnu.fp.model.events;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

import no.ntnu.fp.model.Employee;

@SuppressWarnings("serial")
public class DialogEmployeesChangeEvent extends ModelEvent {
	private final List<Employee> oldParticipants, participants;

	public DialogEmployeesChangeEvent(Object source, List<Employee> oldParticipants, 
			List<Employee> participants) {
		super(source);
		this.oldParticipants = new CopyOnWriteArrayList<Employee>(oldParticipants);
		this.participants = new CopyOnWriteArrayList<Employee>(participants);
	}

	public List<Employee> getOldParticipants() {
		return oldParticipants;
	}

	public List<Employee> getParticipants() {
		return participants;
	}

}
